<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<jsp:directive.page contentType="text/html" pageEncoding="UTF-8" />
<html xmlns:jsp="http://java.sun.com/JSP/Page">

<spring:url value="/login" var="login"/>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login page</title>
</head>
<body>

<jsp:include page="header.jsp" />
<div id="centered">
  <br/>
        <div class = "forms">
        <form:form action="${login}" method="POST"
		modelAttribute="loginDTO">
			Name:	<form:input path="name" />	
						
		<form:errors path="name" cssClass="errorLogin" element="div"/>		
		 <br>
		 
		 Password:	<form:input path="password" />	
						
		<form:errors path="password" cssClass="errorLogin" element="div"/>		
		
		
		<br/>
	<form:button>Login</form:button>		 
			
					</form:form>
				</div>
				</div>
					
</body>
</html>